import request from '@/utils/request'

// 查询利润日清列表
export function listDayIncome(query) {
  return request({
    url: '/shop/dayIncome/list',
    method: 'get',
    params: query
  })
}

// 查询利润日清详细
export function getDayIncome(id) {
  return request({
    url: '/shop/dayIncome/' + id,
    method: 'get'
  })
}

// 新增利润日清
export function addDayIncome(data) {
  return request({
    url: '/shop/dayIncome',
    method: 'post',
    data: data
  })
}

// 修改利润日清
export function updateDayIncome(data) {
  return request({
    url: '/shop/dayIncome',
    method: 'put',
    data: data
  })
}

// 删除利润日清
export function delDayIncome(id) {
  return request({
    url: '/shop/dayIncome/' + id,
    method: 'delete'
  })
}
